<div class="wrap">
<h2>
<?php
echo _e('Sport Setting');

?>
</h2>
<p>
<?php
echo _e('Please select operation from below: ');

?>
</p>

<?php
$items = array(
        array("action" => 'mgr_sport', "name" => _e("Manage Sport"), "desc" => _e("Manage the sport game.")),
        array("action" => 'mgr_project', "name" => _e("Manage Project"), "desc" => _e("Manage the projects.")),
        array("action" => 'mgr_group', "name" => _e("Manage Group"), "desc" => _e("Manage the groups.")),
        array("action" => 'sync_list', "name" => _e("Sync List"), "desc" => _e("Sync the sport list.")),
        array("action" => 'fresh_apply', "name" => _e("Fresh Apply"), "desc" => _e("Fresh the sport apply table.")),
        array("action" => 'group_track', "name" => _e("Group Track"), "desc" => _e("Group the track.")),
        array("action" => 'group_field', "name" => _e("Group Field"), "desc" => _e("Group the field."))
        );
$html = array();
$wrap = "\n\t";
foreach($items AS $item) {
    $style = ("class='alternate'" == $style)?"":"class='alternate'";
    $html[] = "<tr $style>" . $wrap;
    $html[] = "<td class='import-system row-title'>";
    $html[] = "<a href='";
    $html[] = $_SERVER['PHP_SELF'] . "?action=" . $item['action'] . "' title='" . $item['desc'] . "'>";
    $html[] = $item['name'];
    $html[] = "</td>" . $wrap;
    $html[] = "<td class='desc'>";
    $html[] = $item['desc'];
    $html[] = "</td>" . $wrap;
    $html[] = "</tr>" . $wrap;
}

?>

<table class="widefat">
<?php

echo implode('', $html);

?>
</table>
<?php
echo (isset($_GET['action']))?showSportOperation():"";
?>

</div>
</div><!-- wpbody -->
</div><!-- wpcontent -->
</div><!-- wpwrap -->